using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class VictoryUI : UIBase
{

    private Transform victoryBtn;

    private void Start()
    {
        AudioManager.Instance.PlayBGM("Victory");
        victoryBtn = transform.Find("victoryBtn");
        Button button = victoryBtn.GetComponent<Button>();
        button.onClick.AddListener(BackToTitle);
    }

    private void BackToTitle()
    {
        Close();
        UIManager.Instance.ShowUI<LoginUI>("TitleUI2", "UI");
        AudioManager.Instance.PlayBGM("Theme");
    }
}
